<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class Config extends Model
{
	use HasDateTimeFormatter;

    protected $table = 'config';

    public static function getValue($field)
    {
        $res = self::where('field_name',$field)->value('value');
        return $res;
    }
}
